package zyz.framework.exception;

/**
 * Created by abc01 on 2017/1/16.
 */
public class BizException extends Exception {
    private static final long serialVersionUID = 5190291468401300592L;

    private String code;

    private String[] params;


    public String getCode() {
        return code;
    }

    public String[] getParams() {
        return params;
    }

    public BizException() {
    }

    public BizException(String code) {
        super(code, null);
        this.code = code;
    }

    public BizException(String code, String[] params) {
        super(code, null);

        this.params = params;
        this.code = code;
    }
}
